import {createWebHashHistory, createRouter} from "vue-router";
import Home from "@/views/Home";
import Leave from "@/components/Leave";
import NotFound from "@/components/NotFound";
import List from "@/views/List";
import history from "@/views/history";


const routes = [
    {
        path: "/",
        name: "HomeName",
        component: Home,
    },
    {
        path: "/Leave",
        name: "LeaveName",
        component: Leave,
    },
    {
        path: "/List",
        name: "ListName",
        component: List
    },
    {
        path: "/history",
        name: "historyName",
        component: history
    },
    {
        path: "/:catchAll(.*)",
        component: NotFound,
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
